# coding: utf-8
from pathlib import Path

PROJECT_ROOT = Path(__file__).parent.parent
RESOURCE_DIR = PROJECT_ROOT / 'resource'
CSS_DIR = RESOURCE_DIR / 'css'

IMAGES_DIR = RESOURCE_DIR / 'images'
ICONS_DIR = IMAGES_DIR / 'icons'
ONE_DIR = IMAGES_DIR / 'single'

APP_DATA_DIR = PROJECT_ROOT / 'AppData'
CONFIG_DIR = APP_DATA_DIR / 'Config'
DB_DIR = APP_DATA_DIR / 'Db'
DEFAULT_DOWNLOAD_DIR = APP_DATA_DIR / 'Download'
CACHE_DIR = APP_DATA_DIR / 'Cache'
COVER_DIR = CACHE_DIR / 'Cover'

BANANA_DB_FILE = DB_DIR / 'banana.sqlite'

CONFIG_DIR.mkdir(parents=True, exist_ok=True)
DB_DIR.mkdir(parents=True, exist_ok=True)
DEFAULT_DOWNLOAD_DIR.mkdir(parents=True, exist_ok=True)
CACHE_DIR.mkdir(parents=True, exist_ok=True)
COVER_DIR.mkdir(parents=True, exist_ok=True)

USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0'
HELP_URL = 'https://gitee.com/chiyaun/BananaVideo/blob/V3.0/README.md'
FEEDBACK_URL = 'https://gitee.com/chiyaun/BananaVideo/issues/new'
AUTHOR = 'chiyaun'
VERSION = 'V1.0'
YEAR = '2025'
